<?php

require($_SERVER['DOCUMENT_ROOT'] . "/bootstrap.php");

// Lấy tất cả SP của hãng đó ra, rồi count
$product_hot1 = mysql_query(@"
							SELECT *
							FROM product
							ORDER BY quantity_buying DESC
							LIMIT 0, 6
						");
while ($row = mysql_fetch_array($product_hot1)) {
	$product_hot[] = $row;
}

$smarty->assign("product_hot", $product_hot);
$smarty->display('../templates/index/index.tpl');
?>